package cate.common.table.farm.forbidden.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.table.d.GDCamp;

public class ForbiddenCombatRow extends ERow {

    /**
     * 圣殿类型
     */
    public int roomId;
    /**
     * 第几关
     */
    public int combatNum;
    /**
     * 需包含英雄阵营
     */
    public byte campReq;
    /**
     * 需包含该阵营英雄数量
     */
    public int campNumReq;
    /**
     * 怪物配置分组
     */
    public int monsterPlanGroup;
    /**
     * 奖励
     */
    public String rewardStr;
    /**
     * 首通奖励
     */
    public String rewardFirstStr;
    /**
     * 首通积分
     */
    public int passScore;
    /**
     * 扫荡积分
     */
    public int mopScore;


    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("ID");
        this.roomId = xr.getInteger("圣殿类型");
        this.combatNum = xr.getInteger("第几关");
        this.campReq = xr.getByte("需包含英雄阵营", GDCamp.Type.NULL);
        this.campNumReq = xr.getInteger("需包含该阵营英雄数量", 0);
        this.monsterPlanGroup = xr.getInteger("怪物配置分组");
        this.rewardStr = xr.getString("奖励");
        this.rewardFirstStr = xr.getString("首通奖励");
        this.passScore = xr.getInteger("首通积分");
        this.mopScore = xr.getInteger("扫荡积分");
    }

}
